import Vue from "vue";
export const BackGroudColor = {
    data() {
        return {
            backgroundMenuColor: "#545c64",
            textMenuColor: "#fff",
        }
    },
    mounted() {
        const root = document.documentElement
        if (root) {
            this.backgroundMenuColor = getComputedStyle(root).getPropertyValue('--menu-backgroud-color')
            this.textMenuColor = getComputedStyle(root).getPropertyValue('--menu-text-color')
        }
    }
}
Vue.mixin(BackGroudColor)